-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(community): add mmr search to pgvector #7438
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@jacoblee93 Please take a look when possible. |
* @returns Promise that resolves with an array of tuples, each containing a `Document` and its similarity score. | ||
*/ | ||
async similaritySearchVectorWithScore( | ||
query: number[], | ||
k: number, | ||
filter?: this["FilterType"] | ||
filter?: this["FilterType"], | ||
includeEmbedding?: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the default signature (even adding params) makes migrations a lot trickier - can we factor this out into a private method?
Sort of like we did with Supabase:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jacoblee93 thanks for the review. Have made the suggested changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! One small comment but mostly looks good
Adds new features to pgvector class
maxMarginalRelevanceSearch
implementation